{strip} {assign var=is_friend value=$this->isfriend($user.id)}
{if !$is_friend && $user['private'] === 'yes' && $user['id'] !== $this->USER['id']} {include file=$this->private_profile_tpl} {else} {assign var=ad value=$this->getAdMarkup('posts')}
{$this->lang['Posts']}
{if $user.id === $this->USER['id']} {$this->getPostBox()} {/if}
{$pagination}
{assign var=countit value=0} {foreach $query as $r} {if $filter == 'shared'} {assign var=id_shared_id value=$r.share_id} {/if} {$r.itemid = $r.id} {$r.byuser = $r.userid} {if $r.community == 'yes'} {assign var=clubid value=$r.clubid} {else} {assign var=clubid value=0} {/if} {assign var="p_text" value=$r.text} {assign var="str_text" value=$this->str_smilies($this->generateMediaPost($p_text,'text',0,$clubid))} {assign var="bgcolor" value=$this->generateMediaPost($p_text,'bgcolor',0,$clubid)} {assign var="track_cover" value=$this->generateMediaPost($p_text,'songs_cover',0,$clubid)} {assign var="tagged_friends" value=$this->generateMediaPost($p_text,'tagged_people',0,$clubid)} {assign var="tagged_places" value=$this->generateMediaPost($p_text,'places',0,$clubid)} {assign var="photos" value=$this->generateMediaPost($p_text,'photos',$r.id,$clubid)} {assign var="video" value=$this->generateMediaPost($p_text,'videos',0,$clubid)} {assign var="tracks" value=$this->generateMediaPost($p_text,'tracks',0,$clubid)} {assign var="links" value=$this->generateMediaPost($p_text,'links',0,$clubid)} {assign var="poll" value=$this->generateMediaPost($p_text,'poll',0,$clubid)} {if $clubid > 0} {assign var="wd_comm_href" value="/post?i={$r.id}&clubid={$clubid}"} {else} {assign var="wd_comm_href" value="/post?i={$r.id}"} {/if} {assign var="wd_comm_data" value='data-type-post="1" data-scrollto="comments"'} {if $filter == 'shared'} {assign var="wd_comm_count" value=$this->getCommentsCountSharedPosts($r.share_id)} {assign var="kl_count" value=$this->getLikesCountSharedPost($r.share_id)} {assign var="kl_eu" value=$this->likedByMeSharedContent($r.share_id)} {else} {assign var="wd_comm_count" value=$this->getCommentsCount($r.id,'post')} {assign var="kl_count" value=$this->getLikesCount($r.id,'post')} {assign var="kl_eu" value=$r.kl_eu} {/if} {assign var="res" value=$r} {if $filter == 'shared'} {$res['itemid'] = $r.share_id} {/if} {if !isset($item_type)} {assign var="item_type" value="post"} {/if} {assign var="k_it_type" value=""} {assign var="more" value=0} {assign var="c_more" value=0}
{$this->lang['post_removed']}{$this->lang['restore']}
{if $filter == 'shared'}
{$r.ushared_fullname}
 {$this->lang['shared_this']}
{else} {if $r.userid === $this->USER['id']} {/if}
{$r.fullname}
{$r.fullname} {if $r.community == 'yes'} {assign var=club_details value=$this->getCommunityDetails($r.clubid)} {$club_details.name} {/if} {$tagged_friends} {if isset($tagged_places[0]) && count($tagged_places)}{$tagged_places[0]}{/if}
{$this->addedConv($r.added)}
{if $r.userid === $this->USER['id']} {else} {/if}
{/if}
{if $r.type == 'song'} {assign var="song_details" value=$this->getSongDetails($r.text)}
{$song_details.artist} - {$song_details.title}
{else if $r.type == 'text' && $filter != 'shared'}
{$this->str_smilies($p_text)}
{else} {if $filter == 'shared'} {assign var="post_content" value=$r.text} {assign var="post_id" value=$r.original_post_id} {if $r.original_post_community == 'yes' && $r.post_type == 'club'} {$clubid = $r.original_post_id} {/if} {assign var="post_type" value=$r.post_type} {include file="{$this->theme_dir}/feed/shared-cnt.html"} {else if $r.type == 'bgcolor'} {$bgcolor} {else} {$this->checkForTranslating($str_text)} {if empty($video[0]) && empty($photos[0]) && !$links && count($tagged_places)}
{$tagged_places[1]}
{/if} {if $video[0] != '' && $video[1] != ''} {if $c_more < 2}
{$video[0]}
{/if} {if $video[1] == 1} {$k_it_type = 'video'}{/if} {$c_more = $c_more+1} {if $video[1] > 3} {$more = 1} {/if} {else if $r.type == 'videos'} Video is not available {/if} {if $photos[0] != '' && $photos[1] != ''} {if $photos[1] == 1 && $k_it_type == ''} {$k_it_type = 'photos'} {else if $photos[1] >= 1 && $k_it_type != ''} {$k_it_type = ''} {/if} {if $c_more < 2}
{$photos[0]}
{/if} {$c_more = $c_more+1} {if $photos[1] && $video[0] != '' || $photos[1] > 2} {$more = 1} {/if} {else if $r.type === 'photo'} Photo is not available {/if} {if $links && $c_more < 2} {$k_it_type = ''} {$c_more = $c_more+1} {/if} {if $poll}
{$poll}
{/if} {if !empty($tracks[0]) && !empty($tracks[1]) && $c_more < 2} {$k_it_type = ''} {if !$photos && !$video[0] && !$tagged_places && !$links} {if $track_cover}{assign var="song_use_cv" value="1"}
{/if} {/if}
{$tracks[0]}
{$c_more = $c_more+1} {if $tracks[1] > 4 || ($tracks[1] && $tagged_places) } {$more = 1} {/if} {/if} {/if} {/if}
{assign var=clubid value=0} {if $filter == 'shared'} {assign var=disable_share value=1} {/if} {include file="{$this->theme_dir}/feed/widget-list.html"}
{if $filter == 'shared'} {else}
{/if} {$countit = $countit+1} {foreachelse} {$this->info_msg(sprintf($this->lang['u_has_no_posts_shares'],$user.fullname))} {/foreach}
{$pagination}
{/if} {/strip}